package serialize;

import serialize.impl.JSONSerializer;

public interface Serializer {

    Serializer DEFAULT = new JSONSerializer();

    byte getSerializerAlogrithm();

    byte[] serialize(Object obj);

    <T> T deserialize(Class<T> cls,byte[] bytes);
}
